function organizationUrlAppend(s) {
  return `${window.RPConfig.mgt}/organization/${s}`;
}
// ---------组织架构-组织----------WW
// 获取组织下已分配的应用
export const getAssignedAppList = ({ responseProcess, param }) => {
  $http.post(organizationUrlAppend(`listApplicationCodeByOrgId`),param).then(res => {
    responseProcess(res.data);
  });
};

// 获取组织下未分配的应用
export const getUnAssignAppList = params => {
  return $http.post(organizationUrlAppend(`list/appPage`), params);
};

//分配应用
export const saveApplicationCodes = params => {
  return $http.post(organizationUrlAppend(`saveApplicationCodes`), params);
};
//删除组织应用关系
export const deleteApplicationCodes = params => {
  return $http.post(organizationUrlAppend(`app/delete`), params);
};